﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ThuQuyForm.aspx.cs" Inherits="WebQuyPhong.Admin.ThuQuyForm" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="panel-heading">
        <h3 class="panel-title"><b>Thông tin thu quỹ</b></h3>
    </div>
    <div class="panel-body">
         <div class="form-horizontal" role="form">
        <asp:HiddenField ID="hdfIDTHU" runat="server" />
        <asp:HiddenField ID="hdfTHANGTHU" runat="server" />
        <asp:HiddenField ID="hdfNAMTHU" runat="server" />
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Nội dung thu
            <asp:RequiredFieldValidator 
                ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlNoiDungThu" 
                Display="Dynamic" InitialValue="- Vui lòng Chọn -" ErrorMessage="Bạn nhập nội dung thu!" ForeColor="Red">*</asp:RequiredFieldValidator>
        </label>
        <div class="col-sm-10">
            <asp:DropDownList ID="ddlNoiDungThu" runat="server" CssClass="form-control" AutoPostBack="True"
                onselectedindexchanged="ddlNoiDungThu_SelectedIndexChanged">
            </asp:DropDownList>
        </div>
        </div>

        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Số tiền thu<asp:RangeValidator 
                ID="RangeValidator1" runat="server" ControlToValidate="txtSoTienThu" 
                Display="Dynamic" ErrorMessage="Chỉ được trong khoảng 100k ~ 1M" 
                ForeColor="Red" MaximumValue="100000000" MinimumValue="1000" Type="Double">*</asp:RangeValidator>
            </label>
        <div class="col-sm-10">
            <asp:TextBox ID="txtSoTienThu" runat="server" CssClass="form-control" placeholder="0"></asp:TextBox>
        </div>
        </div>

        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Cán bộ thu
                    </label>
        <div class="col-sm-10">
            <asp:DropDownList ID="ddlCanBo" runat="server" CssClass="form-control">
            </asp:DropDownList>
        </div>
        </div>

        <div class="form-group">
            <label for="datetime" class="col-sm-2 control-label">Ngày thu
            <asp:RequiredFieldValidator 
                ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtNgayThu" 
                Display="Dynamic" InitialValue="" ErrorMessage="Bạn nhập ngày thu!" ForeColor="Red">*</asp:RequiredFieldValidator>
            </label>
            <div class="col-sm-10">
                <asp:TextBox ID="txtNgayThu" runat="server"  CssClass="form-control" 
                    placeholder="Ngày thu" TextMode="Date"></asp:TextBox>            
            </div> 
        </div>
        
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Ghi chú</label>
        <div class="col-sm-10">
            <asp:TextBox ID="txtGhiChu" runat="server" CssClass="form-control" placeholder="Ghi chú"></asp:TextBox>
        </div>
        </div>

        <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <asp:LinkButton ID="btnSave" CssClass="btn btn-primary" runat="server" 
                onclick="btnSave_Click">Lưu</asp:LinkButton>
            <a href="ThuQuyManager.aspx" class="btn btn-default">
            Hủy bỏ
            </a>
        </div>
        </div>
        <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
        </div>
        </div>
    </div>
    </div>
</asp:Content>

